package pl.sind.io;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class IO {
	public static void pump(InputStream in, OutputStream out) throws IOException{
		if(in!=null && out!=null){
			byte[] buffer = new byte[1024];
			int count = in.read(buffer);
			while(count>0){
				out.write(buffer, 0, count);
				count = in.read(buffer);
			}
		}
	}
}
